package com.turing.post.salesmanage.util;

import java.math.BigInteger;
import java.util.List;

import javax.ejb.Local;
import javax.ejb.Remote;

import com.turing.post.cardmanagement.util.CardStock;
import com.turing.post.util.PCPSApplicationException;

/**
 * 销售单售卡明细业务接口
 * 
 * @author zxp
 * @Dec 23, 2012
 */
@Remote
@Local
public interface SaleOrderCardDetailBusiness {

	/**
	 * 销售单所销售卡库存列表，用于自动产生实名excel使用
	 * 
	 * @param saleOrderId 销售单编号
	 * @return 卡库存列表
	 */
	public List<CardStock> getCardStockListBySaleOrderId(
			BigInteger saleOrderId);

	/**
	 * 新增销售单售卡明细 
	 * 
	 * @param saleOrderCardDetail 销售单售卡明细
	 * @throws PCPSApplicationException
	 */
//	public void insertSaleOrderCardDetailInfo(
//			SaleOrderCardDetail saleOrderCardDetail)
//			throws PCPSApplicationException;

	/**
	 * 删除销售单售卡明细
	 * 
	 * @param saleOrderCardDetail 销售单售卡明细
	 * @throws PCPSApplicationException
	 */
	public void deleteSaleOrderCardDetailInfo(
			SaleOrderCardDetail saleOrderCardDetail)
			throws PCPSApplicationException;
}
